home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games of Daze
/
Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso
/
x2ftp
/
msdos
/
fg
/
fgl402e
/
expas.arj
/
TEMP
/
11-03.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1995-01-20
|
1KB
|
55 lines
{$M 16384,0,0}
program main;
uses fgmain, fgbitmap, fgmisc;
var
status : integer;
row : integer;
new_mode, old_mode : integer;
message : string[21];
begin
fg_initpm;
new_mode := fg_bestmode(320,200,2);
if (new_mode < 0) or (new_mode = 12) then
begin
write('This program requires a 320 ');
writeln('x 200 color graphics mode.');
exit;
end;
old_mode := fg_getmode;
fg_setmode(new_mode);
fg_setcolor(7);
fg_rect(0,319,0,199);
fg_setcolor(9);
for row := 0 to 24 do
begin
str(row:2,message);
message := ' This is row ' + message + ' ';
fg_locate(row,0);
fg_text(message,20);
fg_text(message,20);
end;
fg_waitkey;
status := fg_allocate(1);
fg_sethpage(1);
fg_save(96,223,88,111);
fg_setcolor(1);
fg_rect(96,223,88,111);
fg_setcolor(15);
fg_locate(12,13);
fg_text('Press any key.',14);
fg_waitkey;
fg_restore(96,223,88,111);
fg_waitkey;
status := fg_freepage(1);
fg_setmode(old_mode);
fg_reset;
end.